package com.hk.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TreeVo {
    //id
    private Integer id;
    //名称
    private String label;
    //嵌套查询
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<TreeVo> children;
}
